package com.walleipt.demo.aop.methodInterceptorDemo;

import java.util.ArrayList;
import java.util.List;

import org.aopalliance.intercept.MethodInterceptor;

public class Main {

	/**
	 * @param args
	 * @throws Throwable 
	 */
	public static void main(String[] args) throws Throwable {
		
		List<MethodInterceptor> methodInterceptors = new ArrayList<MethodInterceptor>() ;
		methodInterceptors.add( new MyMethodInterceptor_A() );
		methodInterceptors.add( new MyMethodInterceptor_B() );
		methodInterceptors.add( new MyMethodInterceptor_C() );
		
		MyMethodInvocation myMethodInvocation = new MyMethodInvocation( methodInterceptors ) ;
		myMethodInvocation.proceed();
	}

}
